package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Festival implements Serializable {
    private String fno;

    private String fname;

    private String ftime;

    private String fdescribe;

    private Integer fstate;

    private static final long serialVersionUID = 1L;

    public String getFno() {
        return fno;
    }

    public void setFno(String fno) {
        this.fno = fno;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getFtime() {
        return ftime;
    }

    public void setFtime(String ftime) {
        this.ftime = ftime;
    }

    public String getFdescribe() {
        return fdescribe;
    }

    public void setFdescribe(String fdescribe) {
        this.fdescribe = fdescribe;
    }

    public Integer getFstate() {
        return fstate;
    }

    public void setFstate(Integer fstate) {
        this.fstate = fstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Festival other = (Festival) that;
        return (this.getFno() == null ? other.getFno() == null : this.getFno().equals(other.getFno()))
            && (this.getFname() == null ? other.getFname() == null : this.getFname().equals(other.getFname()))
            && (this.getFtime() == null ? other.getFtime() == null : this.getFtime().equals(other.getFtime()))
            && (this.getFdescribe() == null ? other.getFdescribe() == null : this.getFdescribe().equals(other.getFdescribe()))
            && (this.getFstate() == null ? other.getFstate() == null : this.getFstate().equals(other.getFstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFno() == null) ? 0 : getFno().hashCode());
        result = prime * result + ((getFname() == null) ? 0 : getFname().hashCode());
        result = prime * result + ((getFtime() == null) ? 0 : getFtime().hashCode());
        result = prime * result + ((getFdescribe() == null) ? 0 : getFdescribe().hashCode());
        result = prime * result + ((getFstate() == null) ? 0 : getFstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fno=").append(fno);
        sb.append(", fname=").append(fname);
        sb.append(", ftime=").append(ftime);
        sb.append(", fdescribe=").append(fdescribe);
        sb.append(", fstate=").append(fstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}